﻿using EaseDapper.Constants;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace EaseDapper
{
    public static class DatabaseOptionBuilderExtension
    {
        public static DatabaseOptionsBuilder UseMySQL(this DatabaseOptionsBuilder option, [NotNull] string connectionString)
        {
            option.InitConfig().SetDbType(DialectNames.MYSQL).SetConnectionString(connectionString);
            return option;
        }
    }
}
